package 多线程.多线程创建.生产者消费者.同步代码块;

public class TestMain {

    public static void main(String[] args) {
        BaoZiPu baoZiPu = new BaoZiPu();
        Product product = new Product(baoZiPu);
        Consume consume = new Consume(baoZiPu);


        new Thread(product).start();
        new Thread(consume).start();
    }
}
